<!--[if isset($objectArray)]-->
  <style>
  img.recthumb{
        float:left;
        padding:15px 10px 0px 0px;
  }
  tr.result {
        min-height:110px;
        width:100%;
        border-width:1px;
        border-top-style:dotted;
        clear:both;
        float:left;
        margin-top:5px;
  }
  div.result h1 {
        font-size:16px;
  }

  #showPriceButton{
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    border:none;
    width:150px;
    height:35px;
    color:#fff;
    font-size:20px;
    border:#FFF 3px solid;
    background-color:#0896ff;
    text-shadow: 0.05em 0.05em 0.05em #333;
    float:right;
  }

  #distance{
    color:#cccccc;
  }

  #address{
    color:#ff9900;
  }

  #link{
    color:#3366ff;
    font-weight:bolder;
  }

  #hotelname{
    color:#6AA118;
    font-size:16px;
    font-weight:bolder;
    
  }

</style>
<script type="text/javascript" src="modules/POBPortal/pnjavascript/wz_tooltip.js"></script> 
<em><!--[pnml name="_POBPORTAL_USER_LIST_HOTEL_RESULT"]--> : <!--[$objectArray|@count]--> <!--[pnml name="_POBPORTAL_USER_LIST_HOTEL_HOTEL"]--></em> ( <!--[$smarty.post.startDay]-->-<!--[$smarty.post.startMonth]-->-<!--[$smarty.post.startYear]--> <!--[pnml name="_POBPORTAL_USER_LIST_HOTEL_TO"]--> <!--[$smarty.post.endDay]-->-<!--[$smarty.post.endMonth]-->-<!--[$smarty.post.endYear]-->)<br>
<!-- <!--[innova_html_select_date end_year=+1 field_order="DMY" prefix="start"]--> <!--[pnml name="_POBPORTAL_USER_LIST_HOTEL_TO"]--> <!--[innova_html_select_date next_day=1 end_year=+1 field_order="DMY" prefix="end"]--> -->
<table width="100%">
  <!--[foreach from=$objectArray item=item]-->
    <tr class="result" onmouseover="this.bgColor='#ecf5ff'" onmouseout="this.bgColor='#ffffff'">

      <td valign="top">
        <!--[if isset($item.ImageItems)]-->
          <a class="image_border" target="_blank" href="#" 
              onmouseover="Tip('&lt;img src=\'<!--[$item.ImageItems[0].Images]-->\' width=\'450\'/&gt;')" 
              onmouseout="UnTip()
          ">
              <img  src="<!--[$item.ImageItems[0].Thumbs]-->" width="100px" height="75px" alt="<!--[$item.HotelName]-->" class="recthumb">
          </a>
        <!--[else]-->
              <img width="100" height="100" src="modules/POBPortal/pnimages/no_image.gif" alt="<!--[$item.HotelName]-->" class="recthumb">
        <!--[/if]-->
      </td>
      <td>
        <table width="100%">
          <tr>
            <td>
                <span id="hotelname">
                  <a href="index.php?module=POBPortal&type=search&func=view&lat=<!--[$item.Latitude]-->&lon=<!--[$item.Longitude]-->&startDate=<!--[$startDate]-->&endDate=<!--[$endDate]-->">
                    <!--[$item.HotelName]-->
                  </a>
                </span> 
                <img src="modules/POBPortal/pnimages/stars<!--[$item.Rating]-->.gif" width="66px" height="12px" align="absmiddle" alt="ประกาศ" title="rating"/>

                <em id="distance"><!--[pnml name="_POBPORTAL_USER_LIST_HOTEL_AWAY_FROM_YOU"]--> &nbsp;&nbsp;<!--[$item.Distance|number_format:2:".":","]--> km.</em><br>
                <em id="address">
                  <!--[$item.AddressLine]-->, <!--[$item.StateProv]-->, <!--[$item.CountryName]-->, <!--[$item.PostalCode]-->&nbsp;&nbsp;
                  <a id="link"
                     target="_blank"
                     href="index.php?module=POBPortal&type=user&func=page&ctrl=map&lat=<!--[$item.Latitude]-->&lon=<!--[$item.Longitude]-->&hotelname=<!--[$item.HotelName]-->"
                  ><!--[pnml name="_POBPORTAL_USER_LIST_HOTEL_MAP"]--></a>
                </em><br>
                <p class="description"><!--[$item.Description|truncate:250:'&hellip;']-->&nbsp;&nbsp;</p>
                <em>
                  <a href="index.php?module=POBPortal&type=search&func=view&lat=<!--[$item.Latitude]-->&lon=<!--[$item.Longitude]-->&startDate=<!--[$startDate]-->&endDate=<!--[$endDate]-->"><!--[pnml name="_POBPORTAL_USER_LIST_HOTEL_MORE"]--></a>
                </em>
                <!-- <button id="showPriceButton" type="submit">แสดงราคา</button> -->
              </p>
            </td>
          </tr>
          <tr>
            <td>
              <!--[if $item.Availabilities]-->
                <table width="100%">
                  <tr>
                    <th width="60%" align="left"><!--[pnml name="_POBPORTAL_AVAILABLE_ROOM_TYPE"]--></th>
                    <th width="15%" align="center"><!--[pnml name="_POBPORTAL_AVAILABLE_ROOM_AMOUNT"]--></th>
                    <th width="30%" align="right"><!--[pnml name="_POBPORTAL_ROOM_RATE"]--></th>
                  </tr>

                  <!--[group_availabilities_array avail=$item.Availabilities]-->
                  <!--[foreach from=$groupAvailabilities item=itemAvailabilities name=foo]-->
                    <!--[if $itemAvailabilities.Limit > 0]-->
                      <tr>
                        <td align="left">
                          <a href="index.php?module=POBPortal&type=search&func=view&lat=<!--[$item.Latitude]-->&lon=<!--[$item.Longitude]-->&startDate=<!--[$startDate]-->&endDate=<!--[$endDate]-->&InvCode=<!--[$itemAvailabilities.InvCode]-->">
                            <!--[$itemAvailabilities.InvCode]-->
                          </a>
                        </td>
                        <td align="center"><!--[$itemAvailabilities.Limit]--></td>
                        <td align="right">THB <!--[$itemAvailabilities.Rate|number_format:2:".":","]--></td>
                      </tr>
                      <!--[if ($groupAvailabilities|@count) > 1]-->
                        <tr>
                          <td colspan="3"><hr style="border: 0; color: #9E9E9E; background-color: #9E9E9E; height: 1px;"></td>
                        </tr>
                      <!--[/if]-->
                    <!--[/if]-->
                  <!--[/foreach]-->
                </table>
              <!--[/if]-->
            </td>
          </tr>
        </table>

      </td>
    </tr>
  <!--[/foreach]--> 
</table>

<!--[else]-->
<div class="recommend">
    <p>
      <h1><!--[pnml name="_POBPORTAL_USER_NO_RESULT"]--></h1>
    </p>
</div>
<!--[/if]-->